import App from './App'
import store from './store/index.js'


// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.prototype.$store = store
Vue.config.productionTip = false
App.mpType = 'app'
uni.$showMsg = function(title = "数据请求失败，请重试！") {
  uni.showToast({
    title,
    icon: 'none'
  })
}
const app = new Vue({
  store,
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
  createSSRApp
} from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif